package com.iweibo.bean;

import android.graphics.drawable.Drawable;

/**
 * 
 * 用户信息实体 
 * @author nibo
 * @date 2012-10-15
 *
 */
public class UserInfo {
	
	//主键id
	private long id;
	//用户id
	private long userId;
	//用户名
	private String userName;
	//token
	private String token;
	//remind_in
	private int remindIn;
	//expires_in
	private int expiresIn;
	//默认用户,0=默认;1=非默认
	private int isDefault;
	//用户头像
	private Drawable userIcon;
	//用户头像
	private byte[] userHeadImg;
	
	public UserInfo(long userId, String userName, String token, int remindIn,
			int expiresIn, int isDefault, byte[] userHeadImg) {
		this.userId = userId;
		this.userName = userName;
		this.token = token;
		this.remindIn = remindIn;
		this.expiresIn = expiresIn;
		this.isDefault = isDefault;
		this.userHeadImg = userHeadImg;
	}
	
	public UserInfo(long userId, String userName, String token, int remindIn,
			int expiresIn, int isDefault) {
		this.userId = userId;
		this.userName = userName;
		this.token = token;
		this.remindIn = remindIn;
		this.expiresIn = expiresIn;
		this.isDefault = isDefault;
	}
	
	public UserInfo() {}
	
	/**
	 * 主键 id
	 * @return long
	 */
	public long getId() {
		return id;
	}
	/**
	 * 主键id
	 * @param id
	 */
	public void setId(long id) {
		this.id = id;
	}
	
	/**
	 * 用户id
	 * @return String
	 */
	public long getUserId() {
		return userId;
	}
	/**
	 * 用户id
	 * @param userId
	 */
	public void setUserId(long userId) {
		this.userId = userId;
	}
	
	/**
	 * 用户名
	 * @return String
	 */
	public String getUserName() {
		return userName;
	}
	/**
	 * 用户名
	 * @param userName
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	/**
	 * token
	 * @return String
	 */
	public String getToken() {
		return token;
	}
	/**
	 * token
	 * @param token
	 */
	public void setToken(String token) {
		this.token = token;
	}
	
	/**
	 * remind_in
	 * @return int
	 */
	public int getRemindIn() {
		return remindIn;
	}
	/**
	 * remind_in
	 * @param remindIn
	 */
	public void setRemindIn(int remindIn) {
		this.remindIn = remindIn;
	}
	
	/**
	 * expires_in
	 * @return int
	 */
	public int getExpiresIn() {
		return expiresIn;
	}
	/**
	 * expires_in
	 * @param expiresIn
	 */
	public void setExpiresIn(int expiresIn) {
		this.expiresIn = expiresIn;
	}
	
	/**
	 * 默认用户
	 * 
	 * @return 0:默认<br>
	 *         1:非默认
	 */
	public int getIsDefault() {
		return isDefault;
	}

	/**
	 * 默认用户
	 * 
	 * @param isDefault
	 * <br>
	 *            0:默认<br>
	 *            1:非默认
	 */
	public void setIsDefault(int isDefault) {
		this.isDefault = isDefault;
	}
	
	/**
	 * 用户头像
	 * @return Drawable
	 */
	public Drawable getUserIcon() {
		return userIcon;
	}
	/**
	 * 用户头像
	 * @param userIcon
	 */
	public void setUserIcon(Drawable userIcon) {
		this.userIcon = userIcon;
	}

	/**
	 * 用户头像
	 * @return
	 */
	public byte[] getUserHeadImg() {
		return userHeadImg;
	}
	/**
	 * 用户头像
	 * @param userHeadImg
	 */
	public void setUserHeadImg(byte[] userHeadImg) {
		this.userHeadImg = userHeadImg;
	}
	
}
